using System;
using System.Collections.Generic;
using System.Text;

namespace DDW.Collections
{
	public class ExpressionList : ExpressionNode
	{
		public ExpressionList()
		{
		}

		private NodeCollection<ExpressionNode> expressions = new NodeCollection<ExpressionNode>();
		public NodeCollection<ExpressionNode> Expressions
		{
			get { return expressions; }
		}

		public override void ToSource(StringBuilder sb)
		{
			string comma = "";
			foreach(ExpressionNode node in expressions)
			{
				sb.Append(comma);
				comma = ", ";
				node.ToSource(sb);
			}
		}
	}
}
